import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import registerServiceWorker from './registerServiceWorker';
import './component/static/css/index.css';

import './component/static/css/basic.css';
import '../node_modules/swiper/dist/css/swiper.min.css';

import {Router,Route,browserHistory,IndexRoute} from 'react-router';

import Home from './component/Home';
import Asign from './component/Asign';
import List from './component/List';
import Gift from './component/Gift';
import Detail from './component/detail';

ReactDOM.render(
        <Router history={browserHistory}>
            <Route path="/" component={App}>
               <IndexRoute component={Home}/>
               <Route path="home" component={Home}/>
               <Route path="asign" component={Asign}/>
               <Route path="list" component={List}/>
               <Route path="gift" component={Gift}/>
               <Route path="detail/:aid" component={Detail}/>
            </Route>
        </Router>,
        document.getElementById('root'));
registerServiceWorker();
